home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / softwareupdate / system / amigados / amigadoslibrary / putstr.c < prev    next >
C/C++ Source or Header  |  1996-10-10  |  635b  |  30 lines

  1. /* PutStr.c   V1.1   93-03-03                  */
  2. /* ROM library: "dos.library/PutStr", (V36+)   */
  3. /* Copyright 1993, Anders Bjerin, Amiga C Club */
  4.  
  5. #include <dos/dos.h>
  6.  
  7. #include <clib/dos_protos.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10.  
  11. UBYTE *version = "$VER: PutStr 1.1";
  12.  
  13. int main( int argc, char *argv[] );
  14. int main( int argc, char *argv[] )
  15. {
  16.   int error_code;
  17.  
  18.  
  19.   /* Write a string to the default file handler: */
  20.   error_code = PutStr( "Only the Amiga makes it fun!" );
  21.     
  22.   /* OK? */
  23.   if( error_code == -1 )  
  24.     printf( "Error while writing!\n" );
  25.   else
  26.     printf( "Line successfully written!\n" );
  27.  
  28.   exit( 0 );
  29. }
  30.